package com.example.fp.cgc.mapper

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.example.fp.cgc.entity.DataState
import org.apache.ibatis.annotations.Select

/**
 * @since 2020-01-24
 * @author 蔡
 */
interface DataStateMapper : BaseMapper<DataState> {
    /**
     * 获取状态
     */
    @Select("SELECT * FROM data_state where tname = #{tableName}")
    fun selectState(tableName: String): DataState
}